package com.atguigu.spring.controller;

import com.atguigu.spring.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Demo04TargetController {

    @RequestMapping("/target")
    public User target(@RequestBody User user) {
        System.out.println("目标 Controller 方法执行了(target)");
        return user;
    }

}
